import {
	http
} from '@/common/api/service.js'

const api = {
	// 获取城市信息
	getCitysList: (parames) => http.get('api/common/region/child', parames),
	// 获取oss token
	getOssInfo: (parames) => http.get('api/common/signature', parames),
	// 分辨新用户还是老用户
	getWxUserInfo: (params) => http.post('/api/login', params),
	// 注册新用户
	RegisterWxUserInfo: (params) => http.post('/api/regist', params),
	// 根据城市名称获取城市code
	getCityCode: (parames) => http.get('api/common/region/findByName', parames),
	// 获取省份信息
	getRegionList: (parames) => http.get('api/common/region/root', parames),
	// 获取首页行程列表
	getItineraryPageList: (parames) => http.get('api/itinerary/list', parames),
	// 获取行程banner图
	getBannerList: (parames) => http.get('api/message/banner', parames),
	// 获取当天操作确认完成的首页历史行程列表  我的历史行程
	getHistoryPageList: (parames) => http.get('api/itinerary/history/list', parames),
	// 个人信息
	getUserInfo: (parames) => http.get('api/user/detail', parames),
	// 修改个人信息
	modifyUserInfo: (parames) => http.post('/api/user/modifyUser', parames),
	// 消息中心
	getMessage: (parames) => http.get('api/message/message', parames),
	// 修改个人信息
	getMessageInfo: (parames) => http.get('api/message/detail', parames),
	// 我的线路
	getLinesList: (params) => http.get('api/lines/list', params),
	// 创建线路
	createLines: (params) => http.post('api/lines', params),
	// 线路信息
	getLinesInfo: (params) => http.get('/api/lines/detail', params),
	// 更新线路
	updateLines: (params) => http.put('api/lines', params),
	// 创建行程
	createItinerary: (params) => http.post('api/itinerary', params),
	// 行程详情
	getItineraryInfo: (params) => http.get('api/itinerary/detail', params),
	// 我的线路评价列表
	linesRecommendList: (params) => http.get('api/lines/recommend/list', params),
	// 创建行程评价
	createrecommendItineraray: (params) => http.post('api/itinerary/order/recommendItineraray', params),
	// 创建行程评价
	viewrecommendItineraray: (params) => http.get('api/itinerary/recommend/detail', params),
	// 领队信息
	leaderInfo: (params) => http.get('api/itinerary/leader/detail', params),
	// 领队行程列表
	leaderItineraryList: (params) => http.get('api/itinerary/leader/list', params),
	// 团队成员列表
	leaderItineraryMemberList: (params) => http.get('api/itinerary/member/list', params),
	// 行程成员详情
	leaderItineraryMemberDetail: (params) => http.get('api/itinerary/member', params),
	// 成员近期三条线路
	itineraryMemberDetail: (params) => http.get('api/itinerary/member/detail', params),
	// 取消行程
	itineraryLeaderCancel: (params) => http.get('api/itinerary/cancel', params),
	// 直接成团
	itineraryct: (params) => http.get('api/itinerary/ct', params),
	// 确认出发
	itinerarystart: (params) => http.get('api/itinerary/start', params),
	// 确认完成
	itineraryfinish: (params) => http.get('api/itinerary/finish', params),
	// 创建行程订单
	createOrder : (params) => http.post('api/itinerary/order', params),
	// 我的订单
	getOrderList: (params) => http.get('api/itinerary/order/list', params),
	// 订单详情
	getOrderDetail: (params) => http.get('api/itinerary/order/detail', params),
	// 领队取消
	itineraryCancel: (params) => http.get('api/itinerary/cancel', params),
	// 个人取消订单
	cancelOrder: (params) => http.get('api/itinerary/order/cancel', params),
	// 入账明细
	incomeList: (params) => http.get('api/wallet/income/list', params),
	// 支出明细
	withdrawList: (params) => http.get('/api/wallet/withdraw/list', params),
	// 钱包详情
	walletDetail: (params) => http.get('api/wallet/detail', params),
	// 银行卡列表
	bankList: (params) => http.get('api/user/bank/list', params),
	// 新增银行卡
	addBank: (params) => http.post('api/user/bank', params),
	// 编辑银行卡
	editBank: (params) => http.post('api/user/bank/edit', params),
	// 提现
	withdraw: (params) => http.post('api/wallet/withdraw/add', params),
	//支付
	payApp: (params) => http.post('api/itinerary/order/wx', params), //预支付
	payNotify: (params) => http.post('api/itinerary/order/wx/result', params), //预支付
	
	
}
export default api
